import type { StorybookConfig } from '@storybook/react-webpack5'

const config: StorybookConfig = {
  stories: [
    '../src/**/*.mdx', // Markdown 文件
    '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)' // .stories.@(js|jsx|mjs|ts|tsx) 文件
  ],
  // 插件
  addons: [
    '@storybook/preset-create-react-app',
    '@storybook/addon-onboarding',
    '@storybook/addon-essentials',
    '@chromatic-com/storybook',
    '@storybook/addon-interactions'
  ],
  framework: {
    name: '@storybook/react-webpack5',
    options: {}
  },
  staticDirs: ['..\\public']
}
export default config
